package com.hxzy.mapper;

import com.hxzy.controller.seckill.req.SeckillReq;
import com.hxzy.entity.StoreCount;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
* @author 11452
* @description 针对表【store_count】的数据库操作Mapper
* @createDate 2023-09-11 11:29:36
* @Entity com.hxzy.entity.StoreCount
*/
public interface StoreCountMapper extends BaseMapper<StoreCount> {

    int updateSckill(@Param(value = "req") SeckillReq req);

    /**
     * 根据主键查询，加悲观锁
     * @param stockId
     * @return
     */
    StoreCount getByIdLock(Integer stockId);
}




